package at.ac.tuwien.big.we14.lab2.api.impl;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import at.ac.tuwien.big.we14.lab2.api.PlayersNameVocabulary;

public class SimplePlayersNameVocabulary implements PlayersNameVocabulary {
	
	private List<String> nameList;
	
	public SimplePlayersNameVocabulary () {
		nameList=new ArrayList<>();
		nameList.add("Hans");
		nameList.add("Ueli");
		nameList.add("Franz");
		nameList.add("Luis");
		nameList.add("Martina");
		nameList.add("Maria");
		nameList.add("Siglinde");
		nameList.add("Walburga");
	}

	@Override
	public String getPlayerName() {
		return nameList.get(Math.abs((new Random()).nextInt()%nameList.size()));
	}

}
